package com.eflow.engine.event;

import com.eflow.engine.vo.TaskEventVo;
import com.eflow.model.event.AbstractTaskEvent;

/**
 * @CLASSNAME TaskComplateEvent
 * @Description 任务完成事件
 * @Auther JanHezz
 * @BLOG www.luckyhe.com
 * @DATE 2021/3/10 16:10
 */
public class TaskCompleteEvent extends AbstractTaskEvent {
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     * which the event is associated (never {@code null})
     */

    private TaskEventVo eventVo;

    public TaskCompleteEvent(TaskEventVo source) {
        super(source);
        this.eventVo = source;
    }

    @Override
    public void execute() {
        System.out.println("任务完成事件" + eventVo.toString());
    }
}
